angular.module('App').config(['$stateProvider', '$urlRouterProvider',
    function($stateProvider, $urlRouterProvider) {
        $stateProvider.
            //App管理
            state('index.App', {
                url: '/App/Edit',
                templateUrl: 'modules/App/client/views/App.client.view.html',
                controller: 'AppController',
                access: { requiredAuthentication: true }
            }).
            state('index.AppById', {
                url: '/App/Edit/:id',
                templateUrl: 'modules/App/client/views/App.client.view.html',
                controller: 'AppController',
                access: { requiredAuthentication: true }
            }).
            state('index.AppList', {
                url: '/App/List',
                templateUrl: 'modules/App/client/views/AppList.client.view.html',
                controller:'AppListController',
                access: { requiredAuthentication: true }
            }).
            state('index.uploadList', {
                url: '/uploadList/Edit',
                templateUrl: 'modules/App/client/views/uploadList.client.view.html',
                controller: 'uploadListController',
                access: { requiredAuthentication: true }
            }).
            state('index.uploadTest', {
                url: '/uploadTest/Edit',
                templateUrl: 'modules/App/client/views/uploadTest.client.view.html',
                controller: 'uploadTestController',
                access: { requiredAuthentication: true }
            }).
            state('index.PatchNew', {
                url: '/PatchNew/Edit',
                templateUrl: 'modules/App/client/views/PatchNew.client.view.html',
                controller: 'PatchNewController',
                access: { requiredAuthentication: true }
            }).
            state('index.PatchNewAdd', {
                url: '/PatchNew/Add',
                templateUrl: 'modules/App/client/views/PatchNewAdd.client.view.html',
                controller: 'PatchNewAddController',
                access: { requiredAuthentication: true }
            }).
            state('index.PatchNewAddById', {
                url: '/PatchNew/Add/:id',
                templateUrl: 'modules/App/client/views/PatchNewAdd.client.view.html',
                controller: 'PatchNewAddController',
                access: { requiredAuthentication: true }
            }).
            state('index.InstallList', {
                url: '/Install/List',
                templateUrl: 'modules/App/client/views/InstallList.client.view.html',
                controller:'InstallListController',
                access: { requiredAuthentication: true }
            }).
            state('index.InstallAdd', {
                url: '/Install/Add',
                templateUrl: 'modules/App/client/views/InstallAdd.client.view.html',
                controller: 'InstallAddController',
                access: { requiredAuthentication: true }
            }).
            state('index.InstallAddById', {
                url: '/Install/Add/:id',
                templateUrl: 'modules/App/client/views/InstallAdd.client.view.html',
                controller: 'InstallAddController',
                access: { requiredAuthentication: true }
            }).
            //共享下载页面
            state('DownloadFile', {
                url: '/shared/DownloadFile',
                templateUrl: 'modules/App/client/views/DownloadFile.client.view.html',
                controller:'DownloadFileController'
            });
    }
]);
